package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommoditySpecialOfferMapper;
import com.richest.api.service.ICommoditySpecialOfferService;
import com.richest.bean.CommoditySpecialOfferBean;

/**
 * 商品特价信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommoditySpecialOfferServiceImpl implements ICommoditySpecialOfferService {

	@Autowired
	private CommoditySpecialOfferMapper mapper;

	@Override
	public Integer commoditySpecialOfferAdd(CommoditySpecialOfferBean bean) {
		return mapper.commoditySpecialOfferAdd(bean);
	}

	@Override
	public Integer commoditySpecialOfferUpdate(CommoditySpecialOfferBean bean) {
		return mapper.commoditySpecialOfferUpdate(bean);
	}

	@Override
	public Integer commoditySpecialOfferDelete(Long id) {
		return mapper.commoditySpecialOfferDelete(id);
	}

	@Override
	public CommoditySpecialOfferBean commoditySpecialOfferSelectOne(Long id) {
		return mapper.commoditySpecialOfferSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commoditySpecialOfferSelectMap(Map<String, Object> params) {
		return mapper.commoditySpecialOfferSelectMap(params);
	}
}
